let query = require("./db").query;
// let sql = "SELECT * from myshop.user where user_id=?";
// let values = [1]
//let sql = "SELECT * from myshop.user where username=? and password =?";
let values = [1]
let sql = "select * from user_role where user_id = ?";

query(sql,values,function(err,results){
    console.log(results);
    console.log(results.length)
    console.log(results[0].role_id);
})